package com.jeesite.modules.mx.entity;

import javax.validation.constraints.Size;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * teacherEntity
 * @author ccz
 * @version 2025-03-21
 */
@Table(name="mx_teacher", alias="a", label="教师信息表信息", columns={
		@Column(name="mx_id", attrName="mxId", label="教师唯一标识", isPK=true),
		@Column(name="mx_name", attrName="mxName", label="教师姓名", queryType=QueryType.LIKE),
		@Column(name="mx_hometown", attrName="mxHometown", label="教师籍贯"),
		@Column(name="mx_region", attrName="mxRegion", label="教师所在地区"),
		@Column(name="mx_score", attrName="mxScore", label="教师评分"),
		@Column(name="mx_unit", attrName="mxUnit", label="教师所属单位"),
	}, orderBy="a.mx_id DESC"
)
public class MxTeacher extends DataEntity<MxTeacher> {
	
	private static final long serialVersionUID = 1L;
	private String mxId;		// 教师唯一标识
	private String mxName;		// 教师姓名
	private String mxHometown;		// 教师籍贯
	private String mxRegion;		// 教师所在地区
	private String mxScore;		// 教师评分
	private String mxUnit;		// 教师所属单位

	public MxTeacher() {
		this(null);
	}
	
	public MxTeacher(String id){
		super(id);
	}
	
	public String getMxId() {
		return mxId;
	}

	public void setMxId(String mxId) {
		this.mxId = mxId;
	}
	
	@Size(min=0, max=100, message="教师姓名长度不能超过 100 个字符")
	public String getMxName() {
		return mxName;
	}

	public void setMxName(String mxName) {
		this.mxName = mxName;
	}
	
	@Size(min=0, max=100, message="教师籍贯长度不能超过 100 个字符")
	public String getMxHometown() {
		return mxHometown;
	}

	public void setMxHometown(String mxHometown) {
		this.mxHometown = mxHometown;
	}
	
	@Size(min=0, max=100, message="教师所在地区长度不能超过 100 个字符")
	public String getMxRegion() {
		return mxRegion;
	}

	public void setMxRegion(String mxRegion) {
		this.mxRegion = mxRegion;
	}
	
	@Size(min=0, max=50, message="教师评分长度不能超过 50 个字符")
	public String getMxScore() {
		return mxScore;
	}

	public void setMxScore(String mxScore) {
		this.mxScore = mxScore;
	}
	
	@Size(min=0, max=100, message="教师所属单位长度不能超过 100 个字符")
	public String getMxUnit() {
		return mxUnit;
	}

	public void setMxUnit(String mxUnit) {
		this.mxUnit = mxUnit;
	}
	
}